package com.tianji.learning.controller;


import com.tianji.learning.domian.vo.SignResultVO;
import com.tianji.learning.service.ISignRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(tags = "签到相关接口")
@RequestMapping("/sign-records")
@RequiredArgsConstructor
public class SignRecordController {
    private final ISignRecordService signRecordService;

    /*添加签到功能*/
    @PostMapping
    @ApiOperation("添加签到功能")
    public SignResultVO addSignRecord() {
        return signRecordService.addSignRecord();
    }

    /*查询签到记录*/
    @ApiOperation("查询签到记录")
    @GetMapping
    public Byte[] querySignRecords(){
        return signRecordService.querySignRecords();
    }
}
